﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace X23.Util.CacheUtil
{
    public class CacheConst
    {
        /// <summary>
        /// 过期类型(1绝对过期 2滑动过期)
        /// </summary>
        public enum ExpirationType
        {
            /// <summary>
            /// 绝对过期
            /// </summary>
            AbsoluteExpiration = 0,

            /// <summary>
            /// 滑动过期
            /// </summary>
            SlidingExpiration = 1
        }
        /// <summary>
        /// 缓存方式(1内存缓存 2Redis缓存)
        /// </summary>
        public enum CacheSetupType
        {
            /// <summary>
            /// 内存缓存
            /// </summary>
            MemoryCache = 0,

            /// <summary>
            /// Redis缓存
            /// </summary>
            RedisCache = 1
        }
        
    }
}
